function OrderDetailModel(){
	this.parent();
}
OrderDetailModel.inherits(BaseModel,{
	createModel:function(){
		var temp = new Array;
		temp[0] = new BookOrderDetailPerBook('bookName1','author11',50,5000);
		temp[1] = new BookOrderDetailPerBook('bookName1','author11',50,5000);
		temp[2] = new BookOrderDetailPerBook('bookName1','author11',50,5000);
		temp[3] = new BookOrderDetailPerBook('bookName1','author11',50,5000);
		return new BookOrderDetail('orderid1','user1','address 1','01223456778','2012-12-12','Ha Minh Thanh','lấy hàng trực tiếp', 'thanh toán trực tiếp',temp);
	}
});


var BookOrderDetail = function(orderId, userId,receiveAddress,receivePhoneNumber,orderDate,receivePersonalName,shippingMethod,paymentMethod,price,status,detailPerBook){
	this.orderId = orderId;
	this.userId = userId;
	this.receiveAddress = receiveAddress;
	this.receivePhoneNumber=receivePhoneNumber;
	this.orderDate = orderDate;
	this.receivePersonalName = receivePersonalName;
	this.shippingMethod = shippingMethod;
	this.paymentMethod = paymentMethod;
	this.price = price;
	this.status = status;
	this.detailPerBook=detailPerBook;
}

var BookOrderDetailPerBook = function(bookName,bookAuthor,quantity,totalPrice){
	this.bookName = bookName;
	this.bookAuthor=bookAuthor;
	this.quantity = quantity;
	this.totalPrice = totalPrice;
}
